\(\int \frac {1}{\sqrt {c x^2} (a+b x)} \, dx\) [881]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [A] (verification not implemented)
   Sympy [F]
   Maxima [A] (verification not implemented)
   Giac [F(-2)]
   Mupad [F(-1)]

Optimal result

Integrand size = 17, antiderivative size = 38 \[ \int \frac {1}{\sqrt {c x^2} (a+b x)} \, dx=\frac {x \log (x)}{a \sqrt {c x^2}}-\frac {x \log (a+b x)}{a \sqrt {c x^2}} \]

[Out]

x*ln(x)/a/(c*x^2)^(1/2)-x*ln(b*x+a)/a/(c*x^2)^(1/2)

Rubi [A] (verified)

Time = 0.00 (sec) , antiderivative size = 38, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.235, Rules used = {15, 36, 29, 31} \[ \int \frac {1}{\sqrt {c x^2} (a+b x)} \, dx=\frac {x \log (x)}{a \sqrt {c x^2}}-\frac {x \log (a+b x)}{a \sqrt {c x^2}} \]

[In]

Int[1/(Sqrt[c*x^2]*(a + b*x)),x]

[Out]

(x*Log[x])/(a*Sqrt[c*x^2]) - (x*Log[a + b*x])/(a*Sqrt[c*x^2])

Rule 15

Int[(u_.)*((a_.)*(x_)^(n_))^(m_), x_Symbol] :> Dist[a^IntPart[m]*((a*x^n)^FracPart[m]/x^(n*FracPart[m])), Int[
u*x^(m*n), x], x] /; FreeQ[{a, m, n}, x] &&  !IntegerQ[m]

Rule 29

Int[(x_)^(-1), x_Symbol] :> Simp[Log[x], x]

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rule 36

Int[1/(((a_.) + (b_.)*(x_))*((c_.) + (d_.)*(x_))), x_Symbol] :> Dist[b/(b*c - a*d), Int[1/(a + b*x), x], x] -
Dist[d/(b*c - a*d), Int[1/(c + d*x), x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0]

Rubi steps \begin{align*} \text {integral}& = \frac {x \int \frac {1}{x (a+b x)} \, dx}{\sqrt {c x^2}} \\ & = \frac {x \int \frac {1}{x} \, dx}{a \sqrt {c x^2}}-\frac {(b x) \int \frac {1}{a+b x} \, dx}{a \sqrt {c x^2}} \\ & = \frac {x \log (x)}{a \sqrt {c x^2}}-\frac {x \log (a+b x)}{a \sqrt {c x^2}} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.00 (sec) , antiderivative size = 27, normalized size of antiderivative = 0.71 \[ \int \frac {1}{\sqrt {c x^2} (a+b x)} \, dx=\frac {x (\log (x)-\log (a (a+b x)))}{a \sqrt {c x^2}} \]

[In]

Integrate[1/(Sqrt[c*x^2]*(a + b*x)),x]

[Out]

(x*(Log[x] - Log[a*(a + b*x)]))/(a*Sqrt[c*x^2])

Maple [A] (verified)

Time = 0.13 (sec) , antiderivative size = 24, normalized size of antiderivative = 0.63

method result size
default \(\frac {x \left (\ln \left (x \right )-\ln \left (b x +a \right )\right )}{\sqrt {c \,x^{2}}\, a}\) \(24\)
risch \(\frac {x \ln \left (-x \right )}{\sqrt {c \,x^{2}}\, a}-\frac {x \ln \left (b x +a \right )}{a \sqrt {c \,x^{2}}}\) \(37\)

[In]

int(1/(b*x+a)/(c*x^2)^(1/2),x,method=_RETURNVERBOSE)

[Out]

x*(ln(x)-ln(b*x+a))/(c*x^2)^(1/2)/a

Fricas [A] (verification not implemented)

none

Time = 0.22 (sec) , antiderivative size = 70, normalized size of antiderivative = 1.84 \[ \int \frac {1}{\sqrt {c x^2} (a+b x)} \, dx=\left [\frac {\sqrt {c x^{2}} \log \left (\frac {x}{b x + a}\right )}{a c x}, \frac {2 \, \sqrt {-c} \arctan \left (\frac {\sqrt {c x^{2}} {\left (2 \, b x + a\right )} \sqrt {-c}}{a c x}\right )}{a c}\right ] \]

[In]

integrate(1/(b*x+a)/(c*x^2)^(1/2),x, algorithm="fricas")

[Out]

[sqrt(c*x^2)*log(x/(b*x + a))/(a*c*x), 2*sqrt(-c)*arctan(sqrt(c*x^2)*(2*b*x + a)*sqrt(-c)/(a*c*x))/(a*c)]

Sympy [F]

\[ \int \frac {1}{\sqrt {c x^2} (a+b x)} \, dx=\int \frac {1}{\sqrt {c x^{2}} \left (a + b x\right )}\, dx \]

[In]

integrate(1/(b*x+a)/(c*x**2)**(1/2),x)

[Out]

Integral(1/(sqrt(c*x**2)*(a + b*x)), x)

Maxima [A] (verification not implemented)

none

Time = 0.20 (sec) , antiderivative size = 35, normalized size of antiderivative = 0.92 \[ \int \frac {1}{\sqrt {c x^2} (a+b x)} \, dx=-\frac {\left (-1\right )^{\frac {2 \, a c x}{b}} \log \left (-\frac {2 \, a c x}{b {\left | b x + a \right |}}\right )}{a \sqrt {c}} \]

[In]

integrate(1/(b*x+a)/(c*x^2)^(1/2),x, algorithm="maxima")

[Out]

-(-1)^(2*a*c*x/b)*log(-2*a*c*x/(b*abs(b*x + a)))/(a*sqrt(c))

Giac [F(-2)]

Exception generated. \[ \int \frac {1}{\sqrt {c x^2} (a+b x)} \, dx=\text {Exception raised: TypeError} \]

[In]

integrate(1/(b*x+a)/(c*x^2)^(1/2),x, algorithm="giac")

[Out]

Exception raised: TypeError >> an error occurred running a Giac command:INPUT:sage2:=int(sage0,sageVARx):;OUTP
UT:index.cc index_m i_lex_is_greater Error: Bad Argument Value

Mupad [F(-1)]

Timed out. \[ \int \frac {1}{\sqrt {c x^2} (a+b x)} \, dx=\int \frac {1}{\sqrt {c\,x^2}\,\left (a+b\,x\right )} \,d x \]

[In]

int(1/((c*x^2)^(1/2)*(a + b*x)),x)

[Out]

int(1/((c*x^2)^(1/2)*(a + b*x)), x)